package services;

import domain.entities.EquipmentType;
import domain.entities.EquipmentTypeDAO;
import domain.entities.VendorType;
import domain.entities.VendorTypeDAO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Guillermo
 * Date: 26/10/12
 * Time: 15:14
 * To change this template use File | Settings | File Templates.
 */
@Service
public class EquipmentTypeService {

    private EquipmentTypeDAO equipmentTypeDAO;

    public EquipmentTypeService() {
    }

    @Autowired
    public EquipmentTypeService(EquipmentTypeDAO equipmentTypeDAO) {
        this.equipmentTypeDAO = equipmentTypeDAO;
    }

    public List<EquipmentType> findAll(){
        return equipmentTypeDAO.findAll();
    }

    public EquipmentType findbyId(Integer id){
        return equipmentTypeDAO.findById(id);
    }

}
